package com.how2java.tmall.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpSession;

//是否因为没有?@Component
@Component
@FeignClient(value = "UCENTER-SERVICE")//写需要被调用的服务名
public interface CenterFeignService {
    @RequestMapping("/center/index")
    public ModelAndView ee(HttpSession session);
}
